﻿@import "./Var.scss";

.header-bar {
    z-index: 100000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 30px 0 40px;
    height: 80px;
    background-color: #fff;
    border-bottom: 1px solid #ececec;
    transition: .5s;
}

.header-bar-container {
    justify-content: flex-start;
    align-items: stretch;
    height: 100%;
}

.header-bar__logo {
    margin-right: 20px;
    align-self: center;

    img {
        height: auto;
        width: 167px;
    }
}

.header-bar__nav-container {
    flex: 1;
    height: 100%;
    justify-content: space-between;
    align-items: stretch;
    align-self: auto;
}

.header-bar__left-nav {
    justify-content: flex-start;
    align-items: stretch;
    align-self: auto;
}

.header-bar__nav-href {
    cursor: pointer;
    color: #707070;
    padding: 0 20px;
    font-size: 16px;
    line-height: 22px;
    align-items: center;

    &:hover {
        color: $--color-primary;
    }
}

.header-bar__nav-button {
    align-self: center;
    font-size: 16px !important;
}

.header-bar__user {
    display: flex;
    align-items: center;
    padding: 0 22px;
    position: relative;
}

.avatar-wrapper {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-right: 0px;
    padding-bottom: 0px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: .5s;
    box-sizing: content-box;

    &.is-round {
        border-radius: 100%;
    }
}

.avatar-wrapper__img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.header-bar__nav-button {
    display: flex;
    align-items: center;
    align-self: center;
    margin-left: 13px;
    font-size: 16px;
}

.user-panel {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px 20px 20px;
    width: 300px;
    .button-link {
        color: #4a4a4a;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 4px;

        &:hover {
            color: #4a4a4a;
            background: #f8f8f8;
        }
    }
}

.header-bar__dropdown-wrapper {
    top: calc(100% + 12px);
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    //padding: 10px 0;
    border-radius: 4px;

    &::before {
        top: -8px;
        display: inline-block;
        content: "";
        border-right: 8px solid transparent;
        border-bottom: 8px solid #fff;
        border-left: 8px solid transparent;
    }
}

.header-bar__dropdown-wrapper, .header-bar__dropdown-wrapper:before {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.user-panel__user-name {
    display: flex;
    margin-top: 15px;
    justify-content: center;

    a {
        color: #4a4a4a;
        transition: .5s;
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;

        &:hover {
            color: $--color-primary;
        }
    }
}

.user-panel__funds-wrapper {
    margin-top: 10px;
    padding: 10px 0 15px;
    background: #d5f3ff;
    background: rgba(213,243,255,.2);
    border-radius: 4px;
}

.user-panel__deposit {
    font-size: 18px;
    color: #00a8e9;
    text-align: center;
    margin: 0 0 15px;
    line-height: 25px;
}

.user-panel__funds-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-panel__link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 15px;
    font-size: 12px;

    &:not(:first-child) {
        position: relative;

        &::after {
            content: "";
            display: inline-block;
            background: #99ddf6;
            position: absolute;
            width: 1px;
            height: 6px;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
        }
    }
}

.user-panel__button {
    padding: 10px 0;

    i {
        font-size: 16px;
        margin-right: 10px;
    }
}

.collapse {
    transition: height .3s ease-in-out, padding-top .3s ease-in-out, padding-bottom .3s ease-in-out;
}
